package com.bougaga.samplespringcloud.kafka.provider.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bougaga.samplespringcloud.kafka.provider.sender.KafkaSender;

@RestController
public class DemoController {

	@Autowired
	private KafkaSender kafkaSender;
	
	@RequestMapping("demo")
	public String demo(){
		kafkaSender.sendMessage("fuck your mami!");
		return null;
	}
}
